package com.czxy.dao;

import com.czxy.domain.Product;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ProductMapper {


    //热门商品
    @Select("select  *  from  product  where  is_hot = 1 and pflag=0  limit  0,9")
    public List<Product> findHotProducts();

    //最新商品
    @Select("select  *  from  product  where  pflag = 0 order by  pdate desc  limit  0,9")
    public List<Product> findNewProducts();


}
